package cn.smile.controller.core;

import cn.smile.bean.dto.core.SysInfoDTO;
import cn.smile.business.core.ISysInfoService;
import cn.smile.commons.response.MyResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;

@RestController
@RequestMapping("api/sysInfo")
public class SysInfoController {
    @Resource
    private ISysInfoService service;

    @GetMapping(value = "getSysInfo")
    public MyResult<SysInfoDTO> getSysInfo() {
        return MyResult.OK(service.getSysInfo());
    }
}
